import request from '@/utils/request'

// 管理员登录
export async function masterLogin(params){
    return request('/api/master/login',{
        method: 'get',
        params
    })
}


export async function updatePassword(params) {
    return request('/api/master/updatePassword', {
        method: 'post',
        data: params
    })
}

export async function updateName(params) {
    return request('/api/master/updateName', {
        method: 'post',
        data: params
    })
}

export async function getUserInfo(params) {
    return request('/api/master/getUserInfo', {
        method: 'get',
        params
    })
}
